/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const dashBoardRouter = {
  path: '/home',
  component: Layout,
  redirect: '/home/dashboard',
  name: 'Home',
  meta: {
    roles: ['editor', 'admin'],
    title: '概览',
    icon: 'list'
  },
  children: [
    {
      path: 'dashboard',
      component: () => import('@/views/dashboard/index'),
      name: 'Dashboard',
      meta: {
        title: '首页',
        icon: 'dashboard',
        affix: true
      }
    }
  ]
}

export default dashBoardRouter
